package com.ostrich.shopping.base;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.ViewModel;


public abstract class BaseMvvmFragment<VDB extends ViewDataBinding,VM extends ViewModel> extends BaseFragment<VDB>{
    protected VM viewModel;
    public abstract void createViewModel();

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        createViewModel();
        return super.onCreateView(inflater, container, savedInstanceState);
    }
}
